﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace DataAccessLayer.Models
{
    [MetadataType(typeof(AddressMetadata))]
    public partial class Address
    {

    }

    public class AddressMetadata
    {

        [DisplayName("Address Line 1")]
        [Required(ErrorMessage = "Address 1 is mandatory")]
        public string AddressLine1 { get; set; }

        [DisplayName("Address Line 2")]
        public string AddressLine2 { get; set; }

        [DisplayName("Address Line 3")]
        public string AddressLine3 { get; set; }

        [DisplayName("State City")]
        public string StateCity { get; set; }

        [DisplayName("Postal Code")]
        [Required(ErrorMessage = "Postal Code is Mandatory")]
        public string PostalCode { get; set; }
    }
}
